package com.easyliving.app.lib.net;

import java.io.Serializable;

/**
 * 通用服务响应类
 * @author chiboo
 * @param <T>
 */
public class ApiResponse<T> implements Serializable {
    private int status;
    private String msg;
    private T data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ApiResponse{" +
                "status=" + status +
                ", msg='" + msg  +
                "', data='" +data+"'}";
    }
}
